package com.ihrm.social.client;


import com.ihrm.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 声明接口，通过feign调用其它服务
 */

@FeignClient("ihrm-employee")
public interface EmployeeFeignClient {
    
    /**
     * 获取个人信息
     */
    @RequestMapping(value = "/employees/{id}/personalIndo",method = RequestMethod.GET)
    Result findPersonalInfo(@PathVariable(name = "id") String uid);
    
}
